using System;
using System.Collections.Generic;
using System.Text;

using Visitor;

namespace ASTClass
{
    public class OperatorAST : AST
    {
        public enum Associative  {Left, Right};

        private Associative assoc;

        public OperatorAST() : base() { name = "Operator"; }
        public OperatorAST(AST parent) : base(parent) 
        {
            name = "Operator";
            assoc = Associative.Left; 
        }

        public OperatorAST.Associative Assoc
        {
            get { return assoc; }
            set { assoc = value; }
        }

        #region Visitor pattern

        public override void Accept(IVisitor visitor)
        {
            visitor.Visit(this);
        }

        #endregion Visitor pattern
    }
}
